import React from 'react'
import s from './index.less'
import Bread from '@c/breadcrumb'
import PropTypes from 'prop-types'

const Comp=({ children, style, showBread=true }) => {
  return (
    <div className={s.box}>
      {showBread&&<Bread />}
      <div className={s['layout']} id={'opt-btn-box'}>
        <div className={s['flex']} style={style}>
          {children}
        </div>
      </div>
    </div>
  )
}
Comp.propTypes={
  style: PropTypes.object,
  showBread: PropTypes.bool
}

export default Comp
